import { Layout } from '@fl/utils/routerHelper'

const member: AppRouteRecordRaw = {
    children: [
        {
            component: () => import('@/pages/member/list.vue'),
            meta: {
                title: '会员查询',
            },
            name: 'anjutong-member-list',
            path: 'member-list',
        },
        {
            component: () => import('@/pages/member-level/index.vue'),
            meta: {
                title: '会员等级管理',
            },
            name: 'anjutong-member-level',
            path: 'member-level',
        },
        {
            component: () => import('@/pages/order-record/index.vue'),
            meta: {
                activeMenu: '/member-center/member/member-list',
                hidden: true,
                noTagsView: true,
                title: '会员详情',
            },
            name: 'anjutong-member-detail-record',
            path: 'detail-record',
        },
        {
            component: () => import('@/pages/member-equity/index.vue'),
            meta: {
                title: '会员权益',
            },
            name: 'anjutong-member-equity',
            path: 'member-equity',
        },
        {
            component: () => import('@/pages/member-equity/component/add.vue'),
            meta: {
                activeMenu: '/member-center/member/member-equity',
                hidden: true,
                noTagsView: true,
                title: '新建会员权益',
            },
            name: 'addEquity',
            path: 'addEquity',
        },
        {
            component: () => import('@/pages/member-equity/component/edit.vue'),
            meta: {
                activeMenu: '/member-center/member/member-equity',
                hidden: true,
                noTagsView: true,
                title: '编辑会员权益',
            },
            name: 'editEquity',
            path: 'editEquity',
        },
        {
            component: () => import('@/pages/growth-rule/index.vue'),
            meta: {
                title: '成长值规则',
            },
            name: 'growth-rule',
            path: 'growth-rule',
        },
    ],
    component: Layout,
    meta: {
        icon: 'i-mdi:user-outline',
        title: '会员管理',
    },
    name: 'anjutong-member',
    path: 'member',
}

export default member
